package com.company.user.vo;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 分页抽象
 * Description: company
 * Created by hekai on 2021/3/18 15:17
 * @author hekai
 */

public abstract class AbstractPageReq implements Serializable {

    @ApiModelProperty(value = "当前页码",required = true)
    private Integer pageNo;

    @ApiModelProperty(value = "当前页面数据大小（展示几条）",required = true)
    private Integer pageSize;

    @ApiModelProperty("创建年份（yyyy）")
    private String createYear;

    @ApiModelProperty(value = "科目ID")
    private String subjectId;

    @ApiModelProperty("年级ID")
    private Long gradeId;

    @ApiModelProperty(value="版本ID")
    private String editionId;

    @ApiModelProperty(value="分册ID（上册、中册、下册")
    private String volName;

    @ApiModelProperty(value = "updateAsc:更新时间正序、updateDesc:更新时间倒序、markAsc:收藏次数倒序、markDesc:收藏次数正序")
    private String sortOrder;

    public static class SortOrder{
        public static final String UPDATEASC = "updateAsc";
        public static final String UPDATEDESC = "updateDesc";
        public static final String MARKASC = "markAsc";
        public static final String MARKDESC = "markDesc";
    }

    public AbstractPageReq() {
    }

    public AbstractPageReq(Integer pageNo, Integer pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }

    public AbstractPageReq(Integer pageNo, Integer pageSize, String createYear, String subjectId, Long gradeId, String editionId, String volName) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.createYear = createYear;
        this.subjectId = subjectId;
        this.gradeId = gradeId;
        this.editionId = editionId;
        this.volName = volName;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getCreateYear() {
        return createYear;
    }

    public void setCreateYear(String createYear) {
        this.createYear = createYear;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public Long getGradeId() {
        return gradeId;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }

    public String getEditionId() {
        return editionId;
    }

    public void setEditionId(String editionId) {
        this.editionId = editionId;
    }

    public String getVolName() {
        return volName;
    }

    public void setVolName(String volName) {
        this.volName = volName;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }
}
